package com.Homework;

import java.util.Scanner;
import java.util.ServiceConfigurationError;

/*
System.out.println("--------欢迎来到学生管理系统--------");
            System.out.println("1 添加学生");
            System.out.println("2 删除学生");
            System.out.println("3 修改学生");
            System.out.println("4 查看学生");
            System.out.println("5 退出");
            System.out.println("请输入您的选择:");

 */
public class SudentSystem {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (true) {
            System.out.println("--------欢迎来到学生管理系统--------");
            System.out.println("1 添加学生");
            System.out.println("2 删除学生");
            System.out.println("3 修改学生");
            System.out.println("4 查看学生");
            System.out.println("5 退出");
            System.out.println("请输入您的选择:");
            int choice = sc.nextInt();
            if (choice == 5) {
                System.out.println("5 退出");
                break;
            }
            switch (choice) {
                case 1:
                    System.out.println("1 添加学生");
                    break;
                case 2:
                    System.out.println("2 删除学生");System.out.println("5 退出");
                    break;
                case 3:
                    System.out.println("3 修改学生");
                    break;
                case 4:
                    System.out.println("4 查看学生");
                    break;

                default:
                    System.out.println("您的输入有误,请重新输入");
                    break;

            }

        }
    }
}
